package com.cms.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 栏目表
 * </p>
 *
 * @author 作者
 * @since 2022-03-06
 */
@Data
public class BaseCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建日期
     */
    private LocalDateTime createDate;

    /**
     * 修改日期
     */
    private LocalDateTime updateDate;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 层级
     */
    private Integer grade;

    /**
     * 编码
     */
    private String code;

    /**
     * URL目录
     */
    private String cat;

    /**
     * 名称
     */
    private String name;

    /**
     * 副名称
     */
    private String subname;

    /**
     * 缩略图
     */
    private String ico;

    /**
     * 大图
     */
    private String image;

    /**
     * 内容
     */
    private String introduction;

    /**
     * 描述
     */
    private String description;

    /**
     * 关键词
     */
    private String keywords;

    /**
     * 标题
     */
    private String title;

    /**
     * 树结构路径
     */
    private String treePath;

    /**
     * 父栏目ID
     */
    private Integer parentId;

    /**
     * 模型ID
     */
    private Integer modelId;

    /**
     * 列表模板
     */
    private String listTemplate;

    /**
     * 详情模板
     */
    private String detailTemplate;

    /**
     * 跳转链接
     */
    private String outlink;

    /**
     * 数据块值
     */
    private String chunkValue;

    /**
     * 备注
     */
    private String remark;

    /**
     * 站点ID
     */
    private Integer siteId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }
    public LocalDateTime getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(LocalDateTime updateDate) {
        this.updateDate = updateDate;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }
    public String getCat() {
        return cat;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setCat(String cat) {
        this.cat = cat;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getSubname() {
        return subname;
    }

    public void setSubname(String subname) {
        this.subname = subname;
    }
    public String getIco() {
        return ico;
    }

    public void setIco(String ico) {
        this.ico = ico;
    }
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getTreePath() {
        return treePath;
    }

    public void setTreePath(String treePath) {
        this.treePath = treePath;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public Integer getModelId() {
        return modelId;
    }

    public void setModelId(Integer modelId) {
        this.modelId = modelId;
    }
    public String getListTemplate() {
        return listTemplate;
    }

    public void setListTemplate(String listTemplate) {
        this.listTemplate = listTemplate;
    }
    public String getDetailTemplate() {
        return detailTemplate;
    }

    public void setDetailTemplate(String detailTemplate) {
        this.detailTemplate = detailTemplate;
    }
    public String getOutlink() {
        return outlink;
    }

    public void setOutlink(String outlink) {
        this.outlink = outlink;
    }
    public String getChunkValue() {
        return chunkValue;
    }

    public void setChunkValue(String chunkValue) {
        this.chunkValue = chunkValue;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getSiteId() {
        return siteId;
    }

    public void setSiteId(Integer siteId) {
        this.siteId = siteId;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", status=" + status +
                ", sort=" + sort +
                ", grade=" + grade +
                ", code=" + code +
                ", cat=" + cat +
                ", name=" + name +
                ", subname=" + subname +
                ", ico=" + ico +
                ", image=" + image +
                ", introduction=" + introduction +
                ", description=" + description +
                ", keywords=" + keywords +
                ", title=" + title +
                ", treePath=" + treePath +
                ", parentId=" + parentId +
                ", modelId=" + modelId +
                ", listTemplate=" + listTemplate +
                ", detailTemplate=" + detailTemplate +
                ", outlink=" + outlink +
                ", chunkValue=" + chunkValue +
                ", remark=" + remark +
                ", siteId=" + siteId +
                "}";
    }
}
